/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.football.lottery.obj;

import java.util.Date;

/**
 *
 * @author I am god
 */
public class GameItem
{
  private int periodNo;
  private int orderNo;
  private String gameType;
  private String hostName;
  private String guestName;
  private Date gameTime;
  private String scoreline;
  private String bet;
  private String preventiveBet;
  private String compensationRate;
  private double winCompensationRate;
  private double drawCompensationRate;
  private double lostCompensationRate;

  public String getBet()
  {
    return bet;
  }

  public void setBet(String bet)
  {
    this.bet = bet;
  }

  public String getPreventiveBet()
  {
    return preventiveBet;
  }

  public void setPreventiveBet(String preventiveBet)
  {
    this.preventiveBet = preventiveBet;
  }
  
  public int getPeriodNo()
  {
    return periodNo;
  }

  public void setPeriodNo(int periodNo)
  {
    this.periodNo = periodNo;
  }
  
  public String getScoreline()
  {
    return scoreline;
  }

  public void setScoreline(String scoreline)
  {
    this.scoreline = scoreline;
  }
  
   public String getCompensationRate()
  {
    return compensationRate;
  }

  public void setCompensationRate(String compensationRate)
  {
    this.compensationRate = compensationRate;
  }
  
  //平手赔率
  public double getDrawCompensationRate()
  {
    return Double.parseDouble(this.compensationRate.split(" ")[1]);
  }
  
  // 主队输赔率
  public double getLostCompensationRate()
  {
    return Double.parseDouble(this.compensationRate.split(" ")[2]);
  }

  // 主队赢赔率
  public double getWinCompensationRate()
  {
    return Double.parseDouble(this.compensationRate.split(" ")[0]);
  }

  public String getGuestName()
  {
    return guestName;
  }

  public void setGuestName(String guestName)
  {
    this.guestName = guestName;
  }

  public String getHostName()
  {
    return hostName;
  }

  public void setHostName(String hostName)
  {
    this.hostName = hostName;
  }

  public String getGameType()
  {
    return gameType;
  }

  public void setGameType(String type)
  {
    this.gameType = type;
  }

  public int getOrderNo()
  {
    return orderNo;
  }

  public void setOrderNo(int orderNo)
  {
    this.orderNo = orderNo;
  }

  public Date getGameTime()
  {
    return gameTime;
  }

  public void setGameTime(Date gameTime)
  {
    this.gameTime = gameTime;
  }
  
  @Override
  public String toString()
  {
    return orderNo + "\t" + gameType + "\t" + hostName + "\t" + guestName + "\t" + gameTime + "\t" 
      +  compensationRate;
  }
    
}
